The WMIEXTRA Sample accompanies Chapter 10 and illustrates some more advanced features of WMI, including:
The sample includes two components:
To build WMIEXTRA.SYS, follow the general instructions for building a WDM sample. The Microsoft Visual C++ project file is named WMIEXTRA.DSP.
To build TEST.EXE, follow the general instructions for building user-mode programs. The Microsoft Visual C++ project file is named TEST.DSP in the TEST subdirectory. To build this test program, you need to have the INCLUDE directory from the Platform SDK in the directories path.
Depending on which version of the Platform SDK you've installed, you may need to take the following additional steps to build TEST.EXE:
Install WMIEXTRA.SYS. Follow the general instructions for using FastInst in Windows 2000 or the Add New Hardware wizard in Windows 98. The INF file is named SYS\WMIEXTRA.INF.
If you're testing in Windows 98, please refer to the general instructions for WMI in Windows 98 for additional information.
Once you’ve installed WMIEXTRA, open a command prompt and launch TEST.EXE (in the TEST\DEBUG subdirectory). It will perform a few operations involving WMIEXTRA’s schema and report the results.